INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(LIB_NAME OCOpenGL)

SET(TARGET_H
	OpenGLDef.h
	Camera.h
	Window.h
	Engine.h
	FrameBuffer.h
	Model.h
	Mesh.h
	MeshBuilder.h
	Viewport.h
	VAO.h
	VBO.h
	EBO.h
	shaderClass.h
	Texture.h
	tiny_gltf.h
	GLTFLoader.h
	State.h
	Skybox.h
	ShadowMapFrameBuffer.h
	CubeMapShadowMapFrameBuffer.h
)

SET(TARGET_SRC
	src/Camera.cpp
	src/Window.cpp
	src/Engine.cpp
	src/FrameBuffer.cpp
	src/Model.cpp
	src/Mesh.cpp
	src/MeshBuilder.cpp
	src/shaderClass.cpp
	src/glad.c
	src/Viewport.cpp
	src/VAO.cpp
	src/VBO.cpp
	src/EBO.cpp
	src/Texture.cpp
	src/GLTFLoader.cpp
	src/State.cpp
	src/Skybox.cpp
	src/ShadowMapFrameBuffer.cpp
	src/CubeMapShadowMapFrameBuffer.cpp
)

SETUP_GROUP()

SET(TARGET_LIBRARIES
    OCMain
    OCGIS
)

SET(TARGET_EXTERNAL_LIBRARIES 
    glfw3
)

SETUP_LIBRARY(${LIB_NAME})

ADD_DEPENDENCIES(${LIB_NAME} OCMain)
ADD_DEPENDENCIES(${LIB_NAME} OCGIS)

